const Router=require('koa-router');
const router=new Router();
const login=require('./login');
const user=require('./user');
const adopt=require('./adopt');
const comment=require('./comment');
const foster=require('./foster');
const works=require('./works');
const pets=require('./pets');
const home=require('./home');
const question=require('./question')

router.use('/question',question.routes(),question.allowedMethods());
router.use('/login',login.routes(),login.allowedMethods());
router.use('/user',user.routes(),user.allowedMethods());
router.use('/adopt',adopt.routes(),adopt.allowedMethods());
router.use('/works',works.routes(),works.allowedMethods());
router.use('/pets',pets.routes(),pets.allowedMethods());
router.use('/comment',comment.routes(),comment.allowedMethods());
router.use('/foster',foster.routes(),foster.allowedMethods());
router.use('/home',home.routes(),home.allowedMethods());
module.exports=router;